<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
$drawerId = 'jv_drawer'.$module->id;
defined('_JEXEC') or die('Restricted access');
//$test = '#'.$drawerId.' li';
$drawerItem = "#jv_drawer".$module->id." li.item";
?>
<script type="text/javascript">
window.addEvent('domready',function(){
    var drawer = new JVDrawer(
    { 
      'isstyle':'photo_h',       
      'otheritem':'<?php echo $item_minimized;?>',     
      'draweritem':'<?php echo $drawerItem; ?>',
      'itemshift':'<?php echo $item_shift; ?>',
      'eventtype':'<?echo $eventType; ?>'     
})
})
</script>
<div style="display: none;">Developed by <a href="http://www.joomvision.com" title="Joomla Templates, Joomla Extentions">JoomVision.com</a></div>
<div class="<?php echo $style ?>">
	<div id="<?php echo $moduleId ?>" class="jv-drawer <?php echo $style ?>" style="<?php echo $css_module_width ?>">
		<ul id="<?php echo $drawerId; ?>" class="list" style="<?php echo $css_module_height ?>">
		<?php for ($i=0; $i < $items; $i++) : ?>		
			<?php
			$listitem = $lists[$i];
			$item_class = "item item" . ($i + 1);
			if ($i == 0) $item_class .= " first active";
			if ($i == $items - 1) $item_class .= " last";
			$item_style = "position: absolute; left: " . ($item_minimized * $i) . "px; z-index: " . ($items - $i) . ";";
			?>
			<li class="<?php echo $item_class ?>" style="<?php echo $css_item_width . $item_style ?>">
				<div style="<?php echo $css_item_height ?>">
					<div class="article">
					<? $renderItem = modJvDrawer::getContentByPhoto($listitem,$params);
                       echo $renderItem; 
                    ?>
                    <?php //echo  "<img src='http://localhost/joomla/images/stories/image3.png' />"; ?>
					</div>
				</div>
			</li>			
		<?php endfor; ?>
		</ul>
		
	</div>
</div>